import TinyReact from '../src';

const root = document.getElementById('root');

const Heart = (props) => (
  <span className="heart">
    <p className="icon">&hearts;</p>
    <div className="name">{props.name}</div>
  </span>
);

TinyReact.render(<Heart name="xiaomin" />, root);
